import React from 'react'
import {
  HomeOutlined
} from '@ant-design/icons'
import Home from './../views/home'
const routes = [
  {
    path: '/home',
    title: '系统首页',
    key: '0-0',
    icon: <HomeOutlined />,
    component: Home
  },
  {
    path: '/banner',
    title: '轮播图管理',
    key: '0-1',
    icon: <HomeOutlined />,
    children: [
      {
        path: '/banner/list',
        title: '轮播图列表',
        key: '0-1-0',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/banner/index'))
      },
      {
        path: '/banner/add',
        title: '添加轮播图',
        key: '0-1-1',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/banner/add')),
        show: false
      }
    ]
  },
  {
    path: '/pro',
    title: '产品管理',
    key: '0-2',
    icon: <HomeOutlined />,
    children: [
      {
        path: '/pro/list',
        title: '产品列表',
        key: '0-2-0',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/pro/index'))
      },
      {
        path: '/pro/seckill',
        title: '秒杀列表',
        key: '0-2-1',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/pro/seckill'))
      },
      {
        path: '/pro/recommend',
        title: '推荐列表',
        key: '0-2-2',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/pro/recommend'))
      },
      {
        path: '/pro/search',
        title: '筛选列表',
        key: '0-2-3',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/pro/search'))
      }
    ]
  },
  {
    path: '/user',
    title: '用户管理',
    key: '0-3',
    icon: <HomeOutlined />,
    children: [
      {
        path: '/user/list',
        title: '用户列表',
        key: '0-3-0',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/user/index'))
      },
      {
        path: '/user/admin',
        title: '管理员列表',
        key: '0-3-1',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/user/admin'))
      }
    ]
  },
  {
    path: '/data',
    title: '数据可视化',
    key: '0-4',
    icon: <HomeOutlined />,
    children: [
      {
        path: '/data/echarts',
        title: 'Echarts',
        key: '0-4-0',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/data/echarts'))
      },
      {
        path: '/data/g2',
        title: 'g2',
        key: '0-4-1',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/data/g2'))
      }
    ]
  },
  {
    path: '/form',
    title: '表单',
    key: '0-5',
    icon: <HomeOutlined />,
    children: [
      {
        path: '/form/editor',
        title: '富文本编辑器',
        key: '0-5-0',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/form/Editor'))
      },
      {
        path: '/form/md',
        title: 'markdown',
        key: '0-5-1',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/form/Md'))
      }
    ]
  },
  {
    path: '/map',
    title: '地图',
    key: '0-6',
    icon: <HomeOutlined />,
    children: [
      {
        path: '/map/baidu',
        title: '百度',
        key: '0-6-0',
        icon: <HomeOutlined />,
        component: React.lazy(() => import('./../views/map/baidu'))
      }
    ]
  }
]

export default routes